package com.dwxt.sport.business.dao;

import com.dwxt.sport.business.entity.SportsTrainingDetails;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.HashMap;
import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface SportsTrainingDetailsMapper extends Mapper<SportsTrainingDetails> {

    int deleteSportsTrainingDetailsByIds(@Param("ids") String[] idArray);

    List<SportsTrainingDetails> selectSportsTrainingDetailsBySportsTrainingId(String sportsTrainingId);

    HashMap selectStatisticsBySportsTrainingId(String sportsTrainingId);

    Integer selectMonitoringCountSumByAll();

    Integer selectMonitoringCountSumByDeviceStatesOne();
}